package com.juzishuke.margin.s2.config.web;

import com.juzishuke.margin.framework.web.VersionFilter;
import com.juzishuke.margin.framework.web.feign.VersionRequestInterceptor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : libo@juzishuke.com
 * @Title :
 * @Description :
 * @date : 2024/4/9 18:28
 * @since :1.0
 */
@Slf4j
@Configuration
public class WebConfig {
    
    @Bean
    public VersionFilter getVersionFilter() {
        return new VersionFilter();
    }
    
    @Bean
    public VersionRequestInterceptor getVersionRequestInterceptor() {
        return new VersionRequestInterceptor();
    }
}
